package com.itheima.d5_dynamic_proxy;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SuperStar implements Star{

    private String name;//明星的名字

    @Override
    public String sing(String name) {
        System.out.println(this.name+":正在唱:"+name);//this.是成员变量 name局部变量
        return "~~谢谢~~鞠躬~~~";
    }

    @Override
    public void dance() {
        System.out.println(this.name+":穿着背带裤正在跳只因你太美~~~");
    }

    @Override
    public void rap() {
        System.out.println(this.name+":临时抱佛脚,你只会临时抱佛脚,临时抱佛脚！！");
    }

    public void playBasketball() {
        System.out.println(this.name+":正在打篮球~~~");
    }
}
